package javacore.objects.test1;

class President {
	String name;
	
	private President(String n){
		name = n;
	}
	
	static President getPresident(String name){
		return new President(name);
	}
	
	void sayHello(){
		System.out.println("Hello " + name);
	}
}